package com.company.woye.console.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.company.woye.R;

public class BoxOperationListviewAdapter extends BaseAdapter {

    private LayoutInflater inflater;
    private Context mContext;

    public BoxOperationListviewAdapter(Context context) {
        this.inflater= LayoutInflater.from(context);
        this.mContext=context;
    }

    @Override
    public int getCount() {
        return 6;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHodler viewHodler=null;
        if (convertView==null){
            convertView=inflater.inflate(R.layout.item_adapter_box_operation,parent,false);
            viewHodler=new ViewHodler(convertView);
            convertView.setTag(viewHodler);
        }else {
            viewHodler= (ViewHodler) convertView.getTag();
        }
        return convertView;
    }

    class ViewHodler{

        public ViewHodler(View view) {
        }
    }
}
